/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.prueba.controller;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;


/**
 *
 * @author Josué
 */
@Controller
public class HelloController{
    @RequestMapping(value = "/home")
    public String indexController(ModelMap map) {
        map.addAttribute("mensaje", "Hola Mundo!");
        return "index";
    }
}